const Koa = require('koa')
// 解析请求正文
const parser = require('koa-bodyparser')
//链接router
const router = require('./app/router')

const Auth = require('./app/middleware/auth')

const app = new Koa()

// app.use(Auth())
//静态资源
app.use(parser())

app.use(router)


//监听端口
app.listen(3000, () => {
    console.log('服务器启动成功,3000')
})
